<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  		<link type="text/css" rel="stylesheet" href="<?=fgsBase::getBaseUrl()?>styles/fgs.css"/>
		<title>FGS Backend</title>
	</head>
<body>
<div id="wrapper">
	<div id="top">
		<div id="lang">
			[ 
			<?
				$params = array_merge(array('fr', fgs::config('page')), fgsBase::getParams());
				echo fgsBase::linkPage('fr', 'lang', $params);
				echo ' - ';
				$params = array_merge(array('en', fgs::config('page')), fgsBase::getParams());
				echo fgsBase::linkPage('en', 'lang', $params);
			?>
			]
		</div>
		<h1><?=fgsBase::linkPage(tr('free gaming system'), 'main')?></a>
	</div>
	<div id="navigation">
	<ul>
		<li><?=fgsBase::linkPage(tr('Home page'), 'main')?></li>
		<li><?=fgsBase::linkPage(tr('Administration'), 'admin')?></li>
		<?php if ($_SESSION['is_admin']) { ?>
		<li><?=fgsBase::linkPage(tr('Logout'), 'logout')?></li>
		<?php } ?>
	</ul>
	</div>
	<div id="sidecontent">
		<?php if (fgsUsers::allowRegistration()) { ?>
		<p class="box">
			<?=tr('No account yet?')?><br/>
			<?=fgsBase::linkPage(tr('Create one!'), 'register')?>
		</p>
		<?php } ?>
		<h3><?=tr('Menu')?></h3>
		<ul class="box">
			<li><?=fgsBase::linkPage(tr('Games'), 'games')?></li>
			<li><?=fgsBase::linkPage(tr('Matchs'), 'matchs')?></li>
			<li><?=fgsBase::linkPage(tr('Players'), 'players')?></li>
			<li><?=fgsBase::linkPage(tr('Statistics'), 'stats')?></li>
		<?php if ($_SESSION['is_admin']) { ?>
			<li><?=fgsBase::linkPage('&raquo; '.tr('Log'), 'log')?></li>
		<?php } ?>
		</ul>
		<h3><?=tr('Links')?></h3>
		<ul class="box">
			<li><a href="http://freegs.net"><?=tr('Free Gaming System')?></a></li>
			<li><a href="http://nekeme.net"><?=tr('Nekeme Prod.')?></a></li>
			<li><a href="http://jeuxlibres.net"><?=tr('Jeuxlibres.net')?></a></li>
		</ul>
	</div>
	<div id="content">
	<? if (count($error)) { ?>
	<div id="error" class="box">
		<?=implode('<br/>', $error)?>
	</div>
	<? } ?>
